package com.shuimutong.paxos.demo.controller;

import com.shuimutong.gmvc.annotation.XController;
import com.shuimutong.gmvc.annotation.XRequestMapping;
import com.shuimutong.gmvc.util.RequestResolveUtil;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@XController
@XRequestMapping("/hello")
public class HelloController {
    @XRequestMapping("/hi")
    public void testA(HttpServletRequest request, HttpServletResponse reponse) {
        System.out.println("Hi, this is TestA");
        RequestResolveUtil.returnJson(request, reponse, "Hi");
    }
}
